package com.abe.bathsystem.widget.dialog;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

import com.abe.bathsystem.utils.NormalUtils;
import com.abe.bathsystem.widget.OnOperateListener;

import net.yet.campusdev.R;

public class RoomDialog extends BaseDialog {

    public RoomDialog(@NonNull Context context, OnOperateListener operateListener) {
        super(context, operateListener);
    }

    public RoomDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.item_view_v3_room_mac);
        TextView item_room_mac = findViewById(R.id.item_room_mac);
        String mac = "MAC:" + NormalUtils.getMac(getContext(),false);
        item_room_mac.setText(mac);
        findViewById(R.id.item_room_reset).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
    }
}
